# 输入一行字符，分别统计出其中英文字母、数字、空格和其他字符的个数。
# string=input("输入英文字母、数字、空格和其他字符：")
# str_count=0
# int_count=0
# kong_count=0
# other_count=0
# for i in string:
#     if i.isdigit():
#         str_count+=1
class Content:
    string = "sunck is a good man ! sunck is a nice man ! " \
             "sunck is a handsome man ! sunck is a good man ! " \
             "sunck is a nice man ! sunck is a great man ! " \
             "sunck is a noble man ! sunck is a cool man !"

if __name__ == '__main__':
    cont=Content()
    li1=cont.string.split(" ")
    dt1=dict()
    for i in li1:
        if dt1.get(i)==None:
            dt1[i]=1
        else :
            dt1[i]+=1
    for j in dt1:
        print(f"{j}出现的次数为:{dt1[j]}")


